seq!
A seq!
macro to repeat a fragment of source code and substitute into each
repetition a sequential numeric counter.
[]
= "0.3"
use seq;
-
If the input tokens contain a section surrounded by
#(
...)*
then only that part is repeated. -
The numeric counter can be pasted onto the end of some prefix to form sequential identifiers.
use seq;
seq!;
-
Byte and character ranges are supported:
b'a'..=b'z'
,'a'..='z'
. -
If the range bounds are written in binary, octal, hex, or with zero padding, those features are preserved in any generated tokens.
use seq;
seq!;